<h3><B>合作商铺设置</B></h3>
<br>
<form class="form-inline">
    <div class="form-group">
        <label for="exampleInputName2">商铺名称</label>
        <input type="text" class="form-control" id="exampleInputName2" ng-model="opt.name">
    </div>
    <div class="form-group">
        <label for="exampleInputEmail2">所在地址</label>
        <input type="text" class="form-control" id="exampleInputEmail2" ng-model="opt.address">
    </div>
    <button type="submit" class="btn btn-default" ng-click="searchRetailer(opt)">检索</button>
</form>
<br>
<div class="tab-content">
    <div class="tab-pane active" id="tab_a">
        <mutau>
            <ul class="pagination" num-pages="tasks.pageCount" current-page="tasks.currentPage"
                on-select-page="selectPage(page)">
                <li ng-class="{disabled: noPrevious()}"><a ng-click="selectPrevious()">&laquo;</a>

                </li>
                <li ng-repeat="page in pages" ng-class="{active: isActive(page)}"><a
                        ng-click="selectPage(page)">{{page}}</a>

                </li>
                <li ng-class="{disabled: noNext()}"><a ng-click="selectNext()">&raquo;</a>

                </li>
                <li ng-show="currentPage>6"><a ng-click="selectPage(1)">首页</a>

                </li>
            </ul>
        </mutau>

        <table class="table table-condensed">
            <thead>
            <tr>
                <th>商铺名称</th>
                <th>分店66编号</th>
                <th>地址</th>
                <th>联系电话</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="retailer in retailerList">

                <td>{{retailer.retailer_name}}</td>
                <td>{{retailer.code}}</td>
                <td>{{retailer.address}}</td>
                <td>{{retailer.phone}}</td>
                <td><input type="checkbox" ng-model="chk"
                           ng-click="bindRetailer(retailer.community_id,chk,retailer.id)"
                           ng-checked="retailer.community_id!=null"></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>